package org.sy.lab.Java7并发编程实战.一线程管理.九线程局部变量的使用;

import java.util.concurrent.TimeUnit;

public class Core {
	public static void main(String[] args) {
		UnsafeTask task = new UnsafeTask();
		for(int i=0; i<10; i++) {
			Thread thread = new Thread(task);
			thread.start();
			try {
				TimeUnit.SECONDS.sleep(2);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
}
